<?php

namespace app\common\model;

use think\Model;

class UserLotteryHistoryModel extends Model
{
    public function lottery()
    {
        return $this->hasOne(LotteryModel::class, 'id', 'lottery_id');
    }

    public function lotteryAward()
    {
        return $this->hasOne(LotteryAwardModel::class, 'id', 'lottery_award_id');
    }

    public function userAddress() {
        return $this->hasOne(UserAddressModel::class, 'id', 'user_delivery_id');
    }
}